import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
//import 'package:hy_visualizatio_flutter/http/Config.dart';
//1.定义MethodChannel，参数要与原生app中MethodChannel的参数一致，可以任意写
/**
 * 名称要和Java端一致
 */
const channelName = "com.mmd.flutterapp/plugin";

const methodName = "log";

const MethodChannel channel = MethodChannel(channelName);

String IPADDRESS = "ip_address";

//todo:链接接口时间
//Config config =Config();
//int oTime =config.connectTimeout;
// 屏幕宽
double w = 0.0;
// 屏幕高
double h = 0.0;
// 左右内边距
double leftRightPadding = 10.0;
// 左右外边距
double leftRightMargin = 10.0;
// 16号字体
double t6 = 16;
// 浅色
Color qColor = Colors.grey[400];
// 标题色
Color titleColor = Colors.pink;
// 提示
String jq = "敬请期待";
// 系统导航高度
double navHeight = 0.0;
//底部导航高度
double navhei = 56.0;
double titleHeight = 44.0;
double bottomHeight = 30.0;
double cuHeight = h-(navHeight+navhei+titleHeight);
// 通用白 字+16大小
TextStyle commText = new TextStyle(
  fontSize: 16,
  color: Colors.white,
);

TextStyle commTextBlack = new TextStyle(
  fontSize: 16,
  color: Colors.black,
);

List<Map<String,Object>> userData  = [
  {
    "username":"1",
    "password":"1",
    "sex":"0",
    "local":"天空",
    "uid":"2121457812121212",
    "content":"我要飞翔的云彩",
    "image":"http://new-img1.ol-img.com/moudlepic/172_module_images/201907/5d25b863d6791_833.jpg",
  },
];
List<Map<String,Object>> testData  = [
  {
    "user":"许冠杰",
    "date":"3月19日",
    "content":"老了老了 电影拍不动了",
    "other":"来自香港的靓仔",
    "type":"演员、歌手",
    "image":"http://new-img3.ol-img.com/moudlepic/199_module_images/201612/5857a5649329f_761.jpg"
  },
  {
    "user":"叶倩文",
    "date":"3月19日",
    "content":"海，你好呀",
    "other":"来自香港的靓仔",
    "type":"歌手",
    "image":"http://pics.sc.chinaz.com/files/pic/pic9/201801/zzpic9256.jpg"
  },
  {
    "user":"周杰伦",
    "date":"3月19日",
    "other":"来自台湾的靓仔",
    "content":"我唱的歌 你们不看歌词 听不懂",
    "type":"歌手",
    "image":"http://pic2.sc.chinaz.com/Files/pic/pic9/201812/zzpic15585_s.jpg"
  },
  {
    "user":"张学友",
    "date":"3月19日",
    "other":"来自香港的靓仔",
    "content":"歌神可不是闹着玩的哟",
    "type":"演员、歌手",
    "image":"http://pic1.sc.chinaz.com/Files/pic/pic9/201808/zzpic13694_s.jpg"
  },
  {
    "user":"谭咏麟",
    "date":"3月18日",
    "other":"来自香港的靓仔",
    "content":"请叫我校长",
    "type":"歌手",
    "image":"http://new-img5.ol-img.com/moudlepic/172_module_images/201909/5d8050cfc5a73_633.jpg"
  },
  {
    "user":"林子祥",
    "date":"3月18日",
    "other":"来自香港的靓仔",
    "content":"详叔我有铁一般的嗓子",
    "type":"歌手",
    "image":"http://new-img2.ol-img.com/300x400/132/973/li2FuFXMYeonY.jpg"
  },
  {
  "user":"黎明",
  "date":"3月17日",
  "other":"来自香港的靓仔",
  "content":"唉 不拍戏就要回去继承家产",
  "type":"歌手、演员",
  "image":"http://new-img5.ol-img.com/moudlepic/172_module_images/201911/5ddcfcfca4534_122.jpg"
  },
  {
  "user":"刘德华",
  "date":"3月16日",
  "other":"来自香港的靓仔",
  "content":"给我一杯忘情水",
  "type":"歌手、演员",
  "image":"http://new-img3.ol-img.com/moudlepic/172_module_images/201911/5dc4dd6f9587a_576.png"
  },
  {
  "user":"陈奕迅",
  "date":"3月15日",
  "other":"来自香港的靓仔",
  "content":"来听我一曲浮夸",
  "type":"歌手、演员",
  "image":"http://new-img1.ol-img.com/moudlepic/172_module_images/201911/5dd263673aceb_811.png"
  },
  {
    "user":"古天乐",
    "date":"3月14日",
    "other":"来自香港的靓仔",
    "content":"是兄弟 今晚就来砍我",
    "type":"演员",
    "image":"http://new-img3.ol-img.com/moudlepic/172_module_images/201912/5def730f14079_969.jpg"
  },
];
List<Map<String, String>> ltData = [
  {
    "user" : "0",
    "context":"吃饭没"
  },
  {
    "user" : "1",
    "context":"还没，你吃了吗"
  },
  {
    "user" : "0",
    "context":"我也还没吃"
  },
  {
    "user" : "1",
    "context":"正经人谁会那么早吃饭呢,正经人谁会那么早吃饭呢,正经人谁会那么早吃饭呢,正经人谁会那么早吃饭呢,正经人谁会那么早吃饭呢,正经人谁会那么早吃饭呢"
  },
  {
    "user" : "0",
    "context":"下贱"
  },
  {
    "user" : "1",
    "context":"下贱"
  },
  {
    "user" : "1",
    "context":"",
    "image":"https://t10.baidu.com/it/u=1587809265,2963987470&fm=76"
  },
];

//动态 测试数据
List<Map<String, Object>> dynamicData = [{
  "user": "111222",
  "date": "20小时前",
  "content": "听说李四闲来没事干？？？ 我不能输啊 我也发几张图片玩一下，哈哈哈哈哈哈哈哈啊哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈",
  "image": [
    "http://imgcar.cnmo-img.com.cn/product/43_800x600/108/cebyrDth6kca.jpg",
    "http://imgcar.cnmo-img.com.cn/product/43_800x600/970/cevWWZ4hfpR7o.jpg",
    "http://imgcar.cnmo-img.com.cn/product/43_800x600/75/ceAgQsGjpt88k.jpg"
  ]
}, {
  "user": "111222",
  "content": "我叫李四，闲来没事干 发2张图片玩一下",
  "date": "20小时前",
  "image": [
    "http://imgcar.cnmo-img.com.cn/product/43_800x600/108/cebyrDth6kca.jpg",
    "http://imgcar.cnmo-img.com.cn/product/43_800x600/970/cevWWZ4hfpR7o.jpg",
    "http://imgcar.cnmo-img.com.cn/product/43_800x600/75/ceAgQsGjpt88k.jpg"
  ]
}];

